import request from '@/utils/request'

// 查询接收文件分享列表
export function listAccept(query) {
  return request({
    url: '/resource/accept/list',
    method: 'get',
    params: query
  })
}

// 查询接收文件分享详细
export function getAccept(id) {
  return request({
    url: '/resource/accept/' + id,
    method: 'get'
  })
}

// 新增接收文件分享
export function addAccept(data) {
  return request({
    url: '/resource/accept/add',
    method: 'post',
    data: data
  })
}

// 修改接收文件分享
export function updateAccept(data) {
  return request({
    url: '/resource/accept',
    method: 'put',
    data: data
  })
}

// 删除接收文件分享
export function delAccept(id) {
  return request({
    url: '/resource/accept/' + id,
    method: 'delete'
  })
}
